package top.itmeans.yes.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 玉货信息表	
 * </p>
 *
 * @author Yiming.Cao
 * @since 2022-05-05
 */
@Getter
@Setter
@TableName("t_product")
@ApiModel(value = "Product对象", description = "玉货信息表")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("玉货分类ID")
    private Long productCategoryId;

    @ApiModelProperty("运费模板ID")
    private Long freightTemplateId;

    private Long productAttributeCategoryId;

    @ApiModelProperty("玉货名称")
    private String name;

    private String pic;

    @ApiModelProperty("删除状态：0->未删除；1->已删除")
    @TableLogic
    private Integer deleteStatus;

    @ApiModelProperty("上架状态：0->下架；1->上架")
    private Integer publishStatus;

    @ApiModelProperty("新品状态:0->不是新品；1->新品")
    private Integer newStatus;

    @ApiModelProperty("推荐状态；0->不推荐；1->推荐")
    private Integer recommandStatus;

    @ApiModelProperty("审核状态：0->未审核；1->审核通过")
    private Integer verifyStatus;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("销量")
    private Integer sale;

    private BigDecimal price;

    @ApiModelProperty("赠送的成长值")
    private Integer giftGrowth;

    @ApiModelProperty("副标题")
    private String subTitle;

    @ApiModelProperty("玉货描述")
    private String description;

    @ApiModelProperty("市场价")
    private BigDecimal originalPrice;

    @ApiModelProperty("库存")
    private Integer stock;

    @ApiModelProperty("库存预警值")
    private Integer lowStock;

    @ApiModelProperty("单位")
    private String unit;

    @ApiModelProperty("玉货重量，默认为千克")
    private BigDecimal weight;

    @ApiModelProperty("以逗号分割的产品服务：1->无忧退货；2->快速退款；3->免费包邮")
    private String serviceIds;

    @ApiModelProperty("玉货关键字")
    private String keywords;

    @ApiModelProperty("备注")
    private String note;

    @ApiModelProperty("画册图片，连产品图片限制为5张，以逗号分割")
    private String albumPics;

    private String detailTitle;

    private String detailDesc;

    @ApiModelProperty("产品详情网页内容")
    private String detailHtml;

    @ApiModelProperty("移动端网页详情")
    private String detailMobileHtml;

    @ApiModelProperty("玉货分类名称")
    private String productCategoryName;


}
